/* eslint-disable no-use-before-define */
import React, { Component } from 'react'
import bg from './back.jpg'
import Comc from './Comc'
export default class Com1 extends Component {
  render () {
    return (
      // <div><img src={bg} style={{ top: this.state.y, left: this.state.x, position: 'absolute', width: 50 }} /></div>
      <Comc render={(state) => (<div><img src={bg} style={{ top: state.y, left: state.x, position: 'absolute', width: 50 }} /></div>)} />
    )
  }
}
